import request, {formRequest}from '@/utils/request';
import { baseUrl } from '@/utils/settings';

export async function selSetting(param) {
    return request(baseUrl + 'setting/selSetting',{ method:'get', data: {}}, param.type);
}

export async function selState(param) {
    return request(baseUrl + 'setting/selState',{ method:'get', data: {}}, param.type);
}

export async function saveSetting(param) {
    return request(baseUrl + 'setting/saveSetting',{ method:'post', data: param.payload }, param.type);
}

export async function useSetting(param) {
    return request(baseUrl + 'setting/useSetting',{ method:'get', data: {} }, param.type);
}
